package com.example.mymvvmdemo.net.view;


/**
 * view：主要用来填充视图
 */
public interface IView {

    //普通DELETE请求的view
    interface DeleteView {
        void loadDeleteSuccess(String result, String type, int code);

        void loadDeleteFail(String message, String type);

        void loadDeleteAccountError(int code);

        void loadDeleteNetWorkError(String message);
    }

    //普通PUT请求的view
    interface PutView {
        void loadPutSuccess(String result, String type);

        void loadPutFail(String message, String type);

        void loadPutAccountError(int code);

        void loadPutNetWorkError();
    }

    //普通PUT Body请求的view
    interface PutBodyView {
        void loadPutBodySuccess(String result, String type, int code);

        void loadPutBodyFail(String message, String type);

        void loadPutBodyAccountError(int code);

        void loadPutBodyNetWorkError();
    }

    //普通GET请求的view
    interface GetView {
        void loadGetSuccess(String result, String type, int code);

        void loadGetFail(String message, String type);

        void loadGetAccountError(int code);

        void loadGetNetWorkError();
    }

    //参数只有一个body的post请求
    interface PostBodyView {
        void loadPostBodySuccess(String result, String type, int code);

        void loadPostBodyFail(String message, String type);

        void loadPostBodyAccountError(int code);

        void loadPostBodyNetWorkError(String type);
    }

    //普通的post请求
    interface PostView {
        void loadPostSuccess(String result, String type, int code);

        void loadPostFail(String message, String type);

        void loadPostAccountError(int code);

        void loadPostNetWorkError();
    }

    //普通的post请求
    interface ImageView {
        void loadImageSuccess(String result, String type, int code);

        void loadImageFail(String message, String type);

        void loadImageAccountError(int code);

        void loadImageNetWorkError(String type);
    }

}
